This commit is contained in:
BoHung Chiu 2022-01-26 16:27:55 +08:00
parent 137e13ad1b
commit 4b4c960d14
1 changed files with 1 additions and 1 deletions

View File

@ -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