Skip to content

Commit 74c2fe8

Browse files
authored
Merge pull request #340 from AppQuality/fix-disable-expired-tab
fix: Update expired booty tab disabled state logic
2 parents d194472 + a2972be commit 74c2fe8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pages/Wallet/WalletTable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export const WalletTable = () => {
132132
useGetUsersMePendingBootyQuery({
133133
filterBy: { isExpired: 1 },
134134
});
135+
135136
// initial requests
136137
useEffect(() => {
137138
const cols = walletColumns(dispatch, t);
@@ -291,7 +292,7 @@ export const WalletTable = () => {
291292
</Tab>
292293
<Tab
293294
id="expired"
294-
disabled={expiredBootyData?.size === 0 || isExpiredBootyLoading}
295+
disabled={isExpiredBootyLoading || !expiredBootyData}
295296
title={
296297
<span className="aq-mx-3-lg">{t("__WALLET_EXPIRED_TAB")}</span>
297298
}

0 commit comments

Comments
 (0)