Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: gl 계산 NaN 에러, 결과 에러 #203

Closed
namnameeroo opened this issue Mar 2, 2023 · 0 comments · Fixed by #229
Closed

Fix: gl 계산 NaN 에러, 결과 에러 #203

namnameeroo opened this issue Mar 2, 2023 · 0 comments · Fixed by #229
Assignees
Labels
FE front-end 🛠 Fix Improvements or additions to documentation

Comments

@namnameeroo
Copy link
Owner

namnameeroo commented Mar 2, 2023

Summary

Description

  1. gl.jsx 파일에서 결과 데이터 객체를 map으로 돌리는데, id랑 date 도 비율로 곱해지는 로직 수정 필요
    제외되어야 할 키 : id, modifiedDate, name
    예외처리할 키 : fiber 등 입력 내역이 0일 때 키가 없음

  2. 결과 저장할 때, 로직 변경 필요
    기존 : 섭취비율에 따라 계산 후 저장 => 결과 조회할 때만 계산해서 보여주고, DB에는 row로 저장되게

@namnameeroo namnameeroo added 🛠 Fix Improvements or additions to documentation FE front-end labels Mar 2, 2023
@namnameeroo namnameeroo self-assigned this Mar 2, 2023
@namnameeroo namnameeroo changed the title Fix: gl 계산 시, NaN 에러 Fix: gl 계산 NaN 에러, 결과 에러 Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE front-end 🛠 Fix Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant