Skip to content

Commit

Permalink
chore: fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Han committed Dec 15, 2021
1 parent c1acefe commit 5c5672d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
BSPaymentMethodType,
BSPaymentTypes,
BSQuoteType,
BuyQuoteType,
BuyQuoteStateType,
CoinType,
CrossBorderLimits,
CrossBorderLimitsPayload,
Expand All @@ -25,7 +25,7 @@ import {
ProviderDetailsType,
SDDEligibleType,
SDDVerifiedType,
SwapQuoteType,
SwapQuoteStateType,
SwapUserLimitsType
} from '@core/types'
import {
Expand Down Expand Up @@ -223,15 +223,7 @@ const buySellSlice = createSlice({
fetchBuyQuoteLoading: (state) => {
state.buyQuote = Remote.Loading
},
fetchBuyQuoteSuccess: (
state,
action: PayloadAction<{
fee: string
pair: string
quote: BuyQuoteType
rate: number
}>
) => {
fetchBuyQuoteSuccess: (state, action: PayloadAction<BuyQuoteStateType>) => {
state.buyQuote = Remote.Success(action.payload)
},
fetchCard: () => {},
Expand Down Expand Up @@ -393,13 +385,7 @@ const buySellSlice = createSlice({
fetchSellQuoteLoading: (state) => {
state.sellQuote = Remote.Loading
},
fetchSellQuoteSuccess: (
state,
action: PayloadAction<{
quote: SwapQuoteType
rate: number
}>
) => {
fetchSellQuoteSuccess: (state, action: PayloadAction<SwapQuoteStateType>) => {
state.sellQuote = Remote.Success(action.payload)
},
handleBuyMaxAmountClick: (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,7 @@ interface OwnProps {
base: SwapAccountType
basePayment: RemoteDataType<string, PaymentValue | undefined>
counter: SwapAccountType
counterQuote: RemoteDataType<
string,
{
quote: SwapQuoteType
rate: number
}
>
counterQuote: RemoteDataType<string, SwapQuoteStateType>
}
type Props = OwnProps & ConnectedProps<typeof connector>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,4 +368,4 @@ export type BuyQuoteType = {
staticFee: null
}

export type BuyQuoteStateType = { pair: string; quote: BuyQuoteType; rate: number }
export type BuyQuoteStateType = { fee: string; pair: string; quote: BuyQuoteType; rate: number }

0 comments on commit 5c5672d

Please sign in to comment.