Skip to content

Commit 394ed25

Browse files
fix(Layer2Onboard): flip select exchange option type to intersection
1 parent 0c83cc1 commit 394ed25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Layer2/Layer2Onboard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const Layer2Onboard: React.FC<IProps> = ({
176176
)
177177
}
178178

179-
const selectExchangeOnboard = (option: ExchangeOption | CexOnboardOption) => {
179+
const selectExchangeOnboard = (option: ExchangeOption & CexOnboardOption) => {
180180
if (Object.hasOwn(option, "cex")) {
181181
trackCustomEvent({
182182
eventCategory: `Selected cex to onboard`,
@@ -301,7 +301,7 @@ const Layer2Onboard: React.FC<IProps> = ({
301301
options: [...cexOnboardOptions],
302302
},
303303
]}
304-
onChange={(selectedOption: ExchangeOption | CexOnboardOption) => {
304+
onChange={(selectedOption: ExchangeOption & CexOnboardOption) => {
305305
selectExchangeOnboard(selectedOption)
306306
}}
307307
placeholder={t("layer-2-onboard-exchange-input-placeholder")}

0 commit comments

Comments
 (0)