message: Change status to  payload.status in generationItem component
diff: @@ -32,14 +32,12 @@ const GenerationItem = ({ intl, item }: Props) => {
  useEffect(() => {
  function getGenerationEvents(event: any) {
  - const { command } = event.data;
  - const { name, status, message } = event.data.payload;
  -
  - if (command === EXTENSION_COMMANDS.GEN_STATUS && name === item.name) {
  - setStatus(status);
  - if (status === GenerationItemStatus.Generating && message) item.message.next(message);
  - if (status === GenerationItemStatus.Success) item.message.complete();
  - if (status === GenerationItemStatus.Failed) item.message.error(message);
  + const { command, payload } = event.data;
  + if (command === EXTENSION_COMMANDS.GEN_STATUS && payload.name === item.name) {
  + setStatus(payload.status);
  + if (payload.status === GenerationItemStatus.Generating && payload.message) item.message.next(payload.message);
  + if (payload.status === GenerationItemStatus.Success) item.message.complete();
  + if (payload.status === GenerationItemStatus.Failed) item.message.error(payload.message);
  }
  }
  