mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
fix: add null guard for purchase_token before rendering CodeOnlySuccessState
This commit is contained in:
@@ -562,7 +562,8 @@ export default function GiftResult() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const isCodeOnlyPaid = status?.status === 'paid' && status?.is_code_only;
|
const isCodeOnlyPaid =
|
||||||
|
status?.status === 'paid' && status?.is_code_only && status?.purchase_token != null;
|
||||||
const isDelivered = status?.status === 'delivered';
|
const isDelivered = status?.status === 'delivered';
|
||||||
const isPendingActivation = status?.status === 'pending_activation';
|
const isPendingActivation = status?.status === 'pending_activation';
|
||||||
const isFailed = status?.status === 'failed' || status?.status === 'expired';
|
const isFailed = status?.status === 'failed' || status?.status === 'expired';
|
||||||
|
|||||||
Reference in New Issue
Block a user