Skip to content

Commit c0a06f6

Browse files
authored
Fix infinite loading on Card Info screen for inactive cards (#162)
* Fix infinite loading for inactive cards on card info screen
1 parent d6b0a22 commit c0a06f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/card.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ export default function CardPage({
243243
</View>
244244
)}
245245

246-
{transactionsLoading || transactions === undefined ? (
246+
{transactionsLoading ? (
247247
<ActivityIndicator />
248-
) : transactions.data.length == 0 ? (
248+
) : transactions === undefined || transactions.data.length === 0 ? (
249249
<Text
250250
style={{
251251
color: palette.muted,
@@ -254,7 +254,7 @@ export default function CardPage({
254254
textAlign: "center",
255255
}}
256256
>
257-
No purchases on this card yet.
257+
There are no purchases on this card.
258258
</Text>
259259
) : (
260260
<>

0 commit comments

Comments
 (0)