diff --git a/frontend/src/app/services/price.service.ts b/frontend/src/app/services/price.service.ts index ef1a973a1..8a93d9554 100644 --- a/frontend/src/app/services/price.service.ts +++ b/frontend/src/app/services/price.service.ts @@ -82,6 +82,9 @@ export class PriceService { return this.singlePriceObservable$.pipe( map((conversion) => { + if (conversion.prices.length <= 0) { + return this.getEmptyPrice(); + } return { price: { USD: conversion.prices[0].USD, EUR: conversion.prices[0].EUR, GBP: conversion.prices[0].GBP, CAD: conversion.prices[0].CAD,