Skip to content

Commit a30d6af

Browse files
authored
Don't show "Loading..." in the payment page when there is nothing to show (#1123)
This fixes a bug that prevents the "No Payments to show yet" message from being displayed when there is no payment. Instead it would always show "Loading..."
1 parent f44fa99 commit a30d6af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pages/payments/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ export default function Payments ({ user, userId, organization }: PaybuttonsProp
252252
throw error
253253
} finally {
254254
setLoading(false)
255+
setTableLoading(false)
255256
}
256257
}
257258

0 commit comments

Comments
 (0)