Skip to content

Commit

Permalink
fix ledger bug
Browse files Browse the repository at this point in the history
  • Loading branch information
starknetdev committed Oct 27, 2023
1 parent 819fd76 commit 949449c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions ui/src/app/hooks/useLoadingStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ const useLoadingStore = create<LoadingState>((set, get) => ({
errorMessage: error ? notificationData.message : undefined,
loading: false,
pendingMessage: undefined,
history: [
...get().history,
{
hash: get().hash,
type: get().type,
notificationData: notificationData,
},
],
history: !error
? [
...get().history,
{
hash: get().hash,
type: get().type,
notificationData: notificationData,
},
]
: [...get().history],
hash: "",
adventurer: undefined,
txAccepted: false,
Expand Down

1 comment on commit 949449c

@vercel
Copy link

@vercel vercel bot commented on 949449c Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.