(sessionId: string)
| 128 | * @returns true if cost state was restored, false otherwise |
| 129 | */ |
| 130 | export function restoreCostStateForSession(sessionId: string): boolean { |
| 131 | const data = getStoredSessionCosts(sessionId) |
| 132 | if (!data) { |
| 133 | return false |
| 134 | } |
| 135 | setCostStateForRestore(data) |
| 136 | return true |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Saves the current session's costs to project config. |
no test coverage detected