diff --git a/src/components/Chart/RateChart.vue b/src/components/Chart/RateChart.vue index 6e3699d..adbd421 100644 --- a/src/components/Chart/RateChart.vue +++ b/src/components/Chart/RateChart.vue @@ -38,7 +38,10 @@ const rate = computed(() => { // .toFixed(2) // .toString(); // return [parseInt(_rate), _rate.split(".")[1]]; - return [parseInt(props.rawData.nowYield), props.rawData.nowYield.split(".")[1]]; + return [ + parseInt(props.rawData.nowYield), + (props.rawData.nowYield + "").split(".")[1], + ]; }); const chart = ref(null);