mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-17 08:13:19 +00:00
Fix undefined prices error (#1173)
This commit is contained in:
@ -9,7 +9,7 @@ export interface Limit {
|
|||||||
export type LimitList = Record<string, Limit>;
|
export type LimitList = Record<string, Limit>;
|
||||||
|
|
||||||
export const compareUpdateLimit = (baseL: Limit, newL: Limit): Limit => {
|
export const compareUpdateLimit = (baseL: Limit, newL: Limit): Limit => {
|
||||||
if (baseL == null) {
|
if (!baseL) {
|
||||||
return newL;
|
return newL;
|
||||||
} else {
|
} else {
|
||||||
const price = (baseL.price + newL.price) / 2;
|
const price = (baseL.price + newL.price) / 2;
|
||||||
|
Reference in New Issue
Block a user