View on GitHub
File Changes
import BigNumber from 'bignumber.js';

                      
export type AdaWallet = {
-
  createdAt: string,
+
  createdAt: Date,
  syncState: WalletSyncState,
  balance: number,
  hasSpendingPassword: boolean,
  ...$Exact<NavButtonProps>,
  type: 'dropdown',
  options: Array<{ value: number | string, label: string }>,
-
  hasNotification: boolean,
+
  hasNotification?: boolean,
};

                      
type Props = {
      0
    );
    const hasNotification =
-
      wallets.active &&
+
      !!wallets.active &&
      wallets.active.mnemonicsConfirmationStatus ===
        WalletStatuses.NOTIFICATION;

                      
  isDelegated?: boolean,
  delegatedStakePool?: StakePool,
  createdAt: Date,
-
  mnemonicsConfirmationDate: ?Date,
-
  mnemonicsConfirmationStatus: string,
-
  mnemonicsConfirmationStatusType: string,
+
  mnemonicsConfirmationDate?: ?Date,
+
  mnemonicsConfirmationStatus?: string,
+
  mnemonicsConfirmationStatusType?: string,
};

                      
export default class Wallet {
import faker from 'faker';
import moment from 'moment';
import BigNumber from 'bignumber.js';
-
import {
+
import Wallet, {
  WalletStatuses,
  WalletStatusesType,
} from '../../../source/renderer/app/domains/Wallet';
  transactionStates,
  transactionTypes,
} from '../../../source/renderer/app/domains/WalletTransaction';
-
import Wallet from '../../../source/renderer/app/domains/Wallet';
import WalletAddress from '../../../source/renderer/app/domains/WalletAddress';
import { LOVELACES_PER_ADA } from '../../../source/renderer/app/config/numbersConfig';
import type {