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