Skip to content

Commit

Permalink
fix(open banking): fixes to and from sections in transactions lists f…
Browse files Browse the repository at this point in the history
…or open banking charges
  • Loading branch information
blockdylanb committed Apr 14, 2021
1 parent 7d1457f commit 7f8690c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export const TransactionType = (props: Props) => {

export const Origin = (props: Props) => {
switch (props.tx.type) {
case 'CHARGE':
case 'REFUNDED':
case 'DEPOSIT':
return props.tx.amount.symbol in CoinTypeEnum ? (
Expand All @@ -184,6 +185,7 @@ export const Origin = (props: Props) => {

export const Destination = (props: Props) => {
switch (props.tx.type) {
case 'CHARGE':
case 'REFUNDED':
case 'DEPOSIT':
case 'SELL':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ export type FiatSBAndSwapTransactionType = {
id: string
insertedAt: string
state: SBTransactionStateType | 'FINISHED'
type: 'DEPOSIT' | 'WITHDRAWAL' | 'REFUNDED' | 'SELL'
type: 'DEPOSIT' | 'WITHDRAWAL' | 'REFUNDED' | 'SELL' | 'CHARGE'
}

0 comments on commit 7f8690c

Please sign in to comment.