From 4b4c960d14441a06222e56ac6be0ef065ec0d4b5 Mon Sep 17 00:00:00 2001 From: Bohung Date: Wed, 26 Jan 2022 16:27:55 +0800 Subject: [PATCH] Fix bug. --- app/controllers/cancerpredicts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/cancerpredicts_controller.rb b/app/controllers/cancerpredicts_controller.rb index efc3036..3fd4288 100644 --- a/app/controllers/cancerpredicts_controller.rb +++ b/app/controllers/cancerpredicts_controller.rb @@ -129,7 +129,7 @@ class CancerpredictsController < ApplicationController result['table'] = @form_to_show.result_table_translations[locale] year = params['data']['year'] rescue nil if year.nil? - year = @years.first.to_f + year = @years.last.to_f else year = year.to_f end