-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: bring transaction response type into shared package #1378
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Mentioning that this approve is provided without starting the local dev in order to see the transactions list displayed in the frontend
# Conflicts: # packages/wallet/shared/src/types/index.ts
b2030e1
to
e201b80
Compare
@@ -323,7 +323,7 @@ const TransactionsPage: NextPageWithLayout<TransactionsPageProps> = ({ | |||
/> | |||
</Table.Cell> | |||
<Table.Cell className="whitespace-nowrap"> | |||
{formatDate({ date: trx.createdAt })} | |||
{formatDate({ date: trx.createdAt.toString() })} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't it string already?
https://github.com/interledger/testnet/blob/main/packages/shared/backend/src/model.ts#L31
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type of createdAt
in the TransactionResponse
interface is Date
because it is implemented in the transaction
model, but the frontend only accepts a string.
Context
Changes