Skip to content

Commit

Permalink
Merge branch 'fix/slot-blocks-cursor' of github.com:iotaledger/explor…
Browse files Browse the repository at this point in the history
…er into fix/slot-blocks-cursor
  • Loading branch information
brancoder committed Apr 26, 2024
2 parents 2135460 + 3c8dbf5 commit ef47ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/app/routes/nova/OutputPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const OutputPage: React.FC<RouteComponentProps<OutputPageProps>> = ({
const slotIndex = outputMetadataResponse?.included?.slot;

let outputManaDetails: OutputManaDetails | null = null;
if (output && createdSlotIndex && protocolInfo) {
if (output && createdSlotIndex !== null && protocolInfo) {
const untilSlotIndex = spentSlotIndex ? spentSlotIndex : latestConfirmedSlot > 0 ? latestConfirmedSlot : null;
outputManaDetails = untilSlotIndex
? buildManaDetailsForOutput(output, createdSlotIndex, untilSlotIndex, protocolInfo.parameters, manaRewards?.rewards ?? null)
Expand Down
2 changes: 1 addition & 1 deletion client/src/helpers/nova/hooks/useAddressBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function useAddressBalance(
const createdSlotIndex = (included?.slot as number) ?? null;
const spentSlotIndex = (spent?.slot as number) ?? null;

if (output && createdSlotIndex && protocolInfo) {
if (output && createdSlotIndex !== null && protocolInfo) {
const untilSlotIndex = spentSlotIndex ? spentSlotIndex : latestConfirmedSlot > 0 ? latestConfirmedSlot : null;
const outputManaDetails = untilSlotIndex
? buildManaDetailsForOutput(
Expand Down

0 comments on commit ef47ccf

Please sign in to comment.