-
-
Save JWLangford/1631ab0a8ef3865f807d4c5c3e00f730 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const buildStateUser = (user: IUser): IUserState => { | |
return { | |
...user, | |
paymentNeeded: Boolean(user.billingInfo), | |
daysRemainingInTrial: differenceInDays(user.created, user.trialEnds), | |
hasEdited: false, | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment