File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,11 @@ import { getPublicKey, submitData } from '@services/api';
1111import { importPemPublicKey , importPemPrivateKey } from '@utils/keypair' ;
1212import { tableToSecretShares , secretSharesToTable } from '@utils/shamirs' ;
1313import { useSelector } from 'react-redux' ;
14+ import { defaultData } from '@constants/default-data' ;
1415
1516export const HomePage : FC = ( ) => {
1617 const [ file , setFile ] = useState < CustomFile | null > ( null ) ;
17- const [ data , setData ] = useState < DataFormat > ( { } as DataFormat ) ;
18+ const [ data , setData ] = useState < DataFormat > ( defaultData ) ;
1819 const [ numShares , setNumShares ] = useState < number > ( 10 ) ;
1920 const [ threshold , setTheshold ] = useState < number > ( 5 ) ; // Must have at least 5 shares to reconstruct
2021 const [ numEncryptWithKey , setNumEncryptWithKey ] = useState < number > ( threshold + 1 ) ; // Encrypt amount "theshold + 1" shares with key
You can’t perform that action at this time.
0 commit comments