mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 09:34:35 +08:00
result graph fix
This commit is contained in:
parent
28ff1a3e42
commit
5c0eb4d0a3
1 changed files with 8 additions and 2 deletions
|
@ -28,10 +28,10 @@ export function toggleUnsmoothedRaw(): void {
|
|||
Notifications.add(useUnsmoothedRaw ? "on" : "off", 1);
|
||||
}
|
||||
|
||||
const resultAnnotation = (
|
||||
let resultAnnotation = (
|
||||
ChartController.result.options as PluginChartOptions<"line" | "scatter">
|
||||
).plugins.annotation.annotations as AnnotationOptions<"line">[];
|
||||
const resultScaleOptions = (
|
||||
let resultScaleOptions = (
|
||||
ChartController.result.options as ScaleChartOptions<"line" | "scatter">
|
||||
).scales;
|
||||
|
||||
|
@ -594,6 +594,12 @@ export async function update(
|
|||
randomQuote: MonkeyTypes.Quote,
|
||||
dontSave: boolean
|
||||
): Promise<void> {
|
||||
resultScaleOptions = (
|
||||
ChartController.result.options as ScaleChartOptions<"line" | "scatter">
|
||||
).scales;
|
||||
resultAnnotation = (
|
||||
ChartController.result.options as PluginChartOptions<"line" | "scatter">
|
||||
).plugins.annotation.annotations as AnnotationOptions<"line">[];
|
||||
result = res;
|
||||
$("#result #resultWordsHistory").addClass("hidden");
|
||||
$("#retrySavingResultButton").addClass("hidden");
|
||||
|
|
Loading…
Reference in a new issue