Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymczakJ committed Apr 9, 2024
1 parent 0106a06 commit 8de7fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/migrations/RenameCardIsVirtual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ONYXKEYS from '@src/ONYXKEYS';
import type {Card} from '@src/types/onyx';
import {isEmptyObject} from '@src/types/utils/EmptyObject';

type OldCard = Card & {isVirtual?: string};
type OldCard = Card & {isVirtual?: boolean};

// This migration changes the property name on each card from card list from isVirtual to nameValuePairs.isVirtual
export default function () {
Expand All @@ -32,7 +32,7 @@ export default function () {
}
return {
...result,
[`${card.cardID}`]: {
[card.cardID]: {
nameValuePairs: {
isVirtual: card.isVirtual,
},
Expand Down

0 comments on commit 8de7fc6

Please sign in to comment.