Skip to content

Commit d37992f

Browse files
committed
s08
1 parent 5329bb0 commit d37992f

File tree

14 files changed

+2353
-21
lines changed

14 files changed

+2353
-21
lines changed

prisma/schema.prisma

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ model Ballot {
9797

9898
model Proxy {
9999
id String @id @default(cuid())
100-
walletId String @unique
100+
walletId String? // Optional - can be linked to wallet or user
101+
userId String? // Optional - can be linked to user directly
101102
proxyAddress String
102103
authTokenId String
103104
paramUtxo String

src/components/common/overall-layout/mobile-wrappers/wallet-data-loader-wrapper.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ export default function WalletDataLoaderWrapper({
182182
await getDRepInfo();
183183
void ctx.transaction.getPendingTransactions.invalidate();
184184
void ctx.transaction.getAllTransactions.invalidate();
185+
// Also refresh proxy data
186+
void ctx.proxy.getProxiesByUserOrWallet.invalidate();
185187
setRandomState();
186188
setLoading(false);
187189
fetchingTransactions.current = false;

src/components/common/overall-layout/wallet-data-loader.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export default function WalletDataLoader() {
5959
await getTransactionsOnChain();
6060
void ctx.transaction.getPendingTransactions.invalidate();
6161
void ctx.transaction.getAllTransactions.invalidate();
62+
// Also refresh proxy data
63+
void ctx.proxy.getProxiesByUserOrWallet.invalidate();
6264
setRandomState();
6365
setLoading(false);
6466
}

0 commit comments

Comments
 (0)