Skip to content

Commit 1871f6b

Browse files
committed
stories: update types in the Storybook stories
1 parent ef447ab commit 1871f6b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/src/__stories__/ProcessingSwaps.stories.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useEffect } from 'react';
22
import { observable } from 'mobx';
33
import * as LOOP from 'types/generated/loop_pb';
4+
import Big from 'big.js';
45
import { loopListSwaps } from 'util/tests/sampleData';
56
import { useStore } from 'store';
67
import { Swap } from 'store/models';
@@ -47,7 +48,7 @@ const mockSwap = (type: number, state: number, id?: string) => {
4748
swap.id = `${id || ''}${swap.id}`;
4849
swap.type = type;
4950
swap.state = state;
50-
swap.lastUpdateTime = Date.now() * 1000 * 1000;
51+
swap.lastUpdateTime = Big(Date.now() * 1000 * 1000);
5152
return swap;
5253
};
5354
// create a list of swaps to use for stories
@@ -84,7 +85,7 @@ export const LoopInProgress = () => {
8485
await delay(2000);
8586
swap.state = SUCCESS;
8687
await delay(2000);
87-
swap.initiationTime = 0;
88+
swap.initiationTime = Big(0);
8889
};
8990

9091
startTransitions();
@@ -106,7 +107,7 @@ export const LoopOutProgress = () => {
106107
await delay(2000);
107108
swap.state = SUCCESS;
108109
await delay(2000);
109-
swap.initiationTime = 0;
110+
swap.initiationTime = Big(0);
110111
};
111112

112113
startTransitions();

0 commit comments

Comments
 (0)