Skip to content

Commit adcdbe6

Browse files
committed
Implement random 'pending'/'approved' status to TOS dummy response
1 parent a503e96 commit adcdbe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/ramps/infinite/infiniteApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ export const makeInfiniteApi = (config: InfiniteApiConfig): InfiniteApi => {
541541
// Dummy response
542542
const dummyResponse: InfiniteTosResponse = {
543543
tosUrl: `https://api.infinite.dev/v1/headless/tos?session=dummy_${Date.now()}&customerId=${customerId}`,
544-
status: 'pending',
544+
status: Math.random() > 0.5 ? 'accepted' : 'pending',
545545
acceptedAt: null,
546546
customerName: 'Test User',
547547
email: 'test@example.com'

0 commit comments

Comments
 (0)