Skip to content

Commit b46e338

Browse files
authored
hotfix cart (gitcoinco#2290)
1 parent 5d25ad5 commit b46e338

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/grant-explorer/src/features/round/ViewCartPage/SummaryContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function SummaryContainer() {
8383
acc +
8484
parseUnits(
8585
amount ? amount : "0",
86-
payoutTokens[Number(key) as ChainId].decimal
86+
payoutTokens[Number(key) as ChainId]?.decimal
8787
),
8888
0n
8989
),

packages/grant-explorer/src/store.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export const useCartStorage = create<CartState>()(
103103
{
104104
/*This is the localStorage key. Change this whenever the shape of the stores objects changes. append a v1, v2. etc. */
105105
name: "cart-storage",
106+
version: 2,
106107
}
107108
)
108109
);

0 commit comments

Comments
 (0)